package com.example.demo.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * User 表数据库控制层接口
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User selectUserByName(String name);

    List<User> selectUserList(@Param("page") Pagination page, @Param("age") Integer age);
}